projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07e6222
)
Ensure harder a GtkStyleContext has a theming engine anytime
author
Carlos Garnacho
<carlosg@gnome.org>
Mon, 17 Jan 2011 02:56:47 +0000
(
03:56
+0100)
committer
Carlos Garnacho
<carlosg@gnome.org>
Mon, 17 Jan 2011 03:43:42 +0000
(
04:43
+0100)
gtk/gtkstylecontext.c
patch
|
blob
|
history
diff --git
a/gtk/gtkstylecontext.c
b/gtk/gtkstylecontext.c
index 8e01b9c0b447445d19512f55701dbc1f601bea8e..e36bef4eb75fddd23c4b0285d84e36a3ede14786 100644
(file)
--- a/
gtk/gtkstylecontext.c
+++ b/
gtk/gtkstylecontext.c
@@
-1165,6
+1165,10
@@
style_data_lookup (GtkStyleContext *context)
gtk_style_properties_get (data->store, 0,
"engine", &priv->theming_engine,
NULL);
+
+ if (!priv->theming_engine)
+ priv->theming_engine = g_object_ref (gtk_theming_engine_load (NULL));
+
return data;
}